// AStarPatchFinderDoc.cpp : implementation of the CAStarPatchFinderDoc class
//

#include "stdafx.h"
#include "AStarPatchFinder.h"

#include "AStarPatchFinderDoc.h"
#include "AStarPatchFinderView.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#endif


// CAStarPatchFinderDoc

IMPLEMENT_DYNCREATE(CAStarPatchFinderDoc, CDocument)

BEGIN_MESSAGE_MAP(CAStarPatchFinderDoc, CDocument)
END_MESSAGE_MAP()


// CAStarPatchFinderDoc construction/destruction

CAStarPatchFinderDoc::CAStarPatchFinderDoc()
{
	// TODO: add one-time construction code here

}

CAStarPatchFinderDoc::~CAStarPatchFinderDoc()
{
}

BOOL CAStarPatchFinderDoc::OnNewDocument()
{
	if (!CDocument::OnNewDocument())
		return FALSE;

	// TODO: add reinitialization code here
	// (SDI documents will reuse this document)

	return TRUE;
}




// CAStarPatchFinderDoc serialization

void CAStarPatchFinderDoc::Serialize(CArchive& ar)
{
	POSITION pos = GetFirstViewPosition();
	CAStarPatchFinderView* view = reinterpret_cast<CAStarPatchFinderView*>(GetNextView(pos));
	if (NULL != view)
	{
		view->Serialize(ar);
	}
}


// CAStarPatchFinderDoc diagnostics

#ifdef _DEBUG
void CAStarPatchFinderDoc::AssertValid() const
{
	CDocument::AssertValid();
}

void CAStarPatchFinderDoc::Dump(CDumpContext& dc) const
{
	CDocument::Dump(dc);
}
#endif //_DEBUG


// CAStarPatchFinderDoc commands
